package com.ahrhyj.system.service;

import com.ahrhyj.common.core.domain.AjaxResult;
import com.ahrhyj.system.domain.SmsLog;

import java.util.List;

/**
 * smslogService接口
 * 
 * @author sentiment
 * @date 2020-09-11
 */
public interface ISmsLogService 
{

    public AjaxResult sendSms(String mobile, String templete, int type);
    public int querySendCountToday(String phone);
    public int validSms(String mobile, String code);
    /**
     * 查询smslog
     * 
     * @param id smslogID
     * @return smslog
     */
    public SmsLog selectSmsLogById(Long id);

    /**
     * 查询smslog列表
     * 
     * @param smsLog smslog
     * @return smslog集合
     */
    public List<SmsLog> selectSmsLogList(SmsLog smsLog);

    /**
     * 新增smslog
     * 
     * @param smsLog smslog
     * @return 结果
     */
    public int insertSmsLog(SmsLog smsLog);

    /**
     * 修改smslog
     * 
     * @param smsLog smslog
     * @return 结果
     */
    public int updateSmsLog(SmsLog smsLog);

    /**
     * 批量删除smslog
     * 
     * @param ids 需要删除的smslogID
     * @return 结果
     */
    public int deleteSmsLogByIds(Long[] ids);

    /**
     * 删除smslog信息
     * 
     * @param id smslogID
     * @return 结果
     */
    public int deleteSmsLogById(Long id);
}
